commit: Add --editor / -e command line argument
authorMathnerd314 <mathnerd314.gph+hs@gmail.com>
Mon, 23 May 2016 18:44:36 +0000 (12:44 -0600)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 25 May 2016 18:37:47 +0000 (18:37 +0000)
commitb5bd28adae5909b5b7e0159e0f2dde268ddf7907
treeffdef7be0d3f992176e79c59a10ec914324d7140
parentdfa1d190b6f647ca5f4f4e8c93f37c7cb4fe0a82
commit: Add --editor / -e command line argument

Previously, the behavior was to run the editor if no subject or body was specified.
This led to using commit -s '' in scripts, to avoid running the editor.
In practice, manually editing commit messages is rare, whereas automated scripting
is common, so instead default to not running the editor and only run it when -e
is given.

Closes: #305
Approved by: cgwalters
src/ostree/ot-builtin-commit.c